list1 = "holle-world"

print((list1[:5]))
print(list1[-5:])


# 使用for循环数字打印0-100的数字
for i in range(0,101):
    print(i)

# 使用for循环0-100的奇数
for j in range(1,101,2):
    print(j)

# 使用for循环1-100 的奇数和
# i = 1
# sum1 = 0
# while i <= 100:
#     if i % 2 == 0:
#         sum1 += i
#     i += 1
# print(sum1)
sum = 0
for g in range(0, 101):
    if g % 2 == 0:
        sum += g
print(sum)
